package com.vdong.ai.restful.controller;


import com.vdong.ai.restful.response.Response;
import com.vdong.ai.restful.service.AiVoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: liangwei
 */
@RestController
@RequestMapping("/ai/iat/")
public class VoiceRecognitionController {
    @Autowired
    AiVoiceService aiVoiceService;

    @RequestMapping("/voice.json")
    public Response Voice(String fileData, String appid, String appkey) {
        return aiVoiceService.Voice(fileData, appid, appkey);
    }
}
